#ifndef BLOOM_DEMO
#define BLOOM_DEMO

#include <QtWidgets>

class BloomDemo: public QWidget {
    public:
        BloomDemo();
        void setFileName(const QString& file);
        void loadImage(const QImage& image);
        void paintEvent(QPaintEvent*);
        // 拖放功能(drag & drop)
        void dragEnterEvent(QDragEnterEvent*);
        void dropEvent(QDropEvent* event);

    public slots:
        void enableEffect(bool enabled); 

    private:
        QString m_fileName;
        QImage m_image;

    private:
        // 控件
        // enable按钮
        QGroupBox* m_enableEffect = nullptr;
        // blur按钮
        QSlider* m_brightnessSlider = nullptr;
};

#endif //BLOOM_DEMO
